<div id="container" class="container">
    <?php if ($current_customer['group_id'] == 1): ?> 
<div class="statuses view">
<h2><?php  echo __('Status'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($status['Status']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($status['Status']['name']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('Edit Status'), array('action' => 'edit', $status['Status']['id'])); ?> </li>
		<li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Form->postLink(__('Delete Status'), array('action' => 'delete', $status['Status']['id']), null, __('Are you sure you want to delete # %s?', $status['Status']['id'])); ?> </li>
		<li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('List Statuses'), array('action' => 'index')); ?> </li>
		<li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('New Status'), array('action' => 'add')); ?> </li>
		<li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('List Customers'), array('controller' => 'customers', 'action' => 'index')); ?> </li>
		<li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('New Customer'), array('controller' => 'customers', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Customers'); ?></h3>
	<?php if (!empty($status['Customer'])): ?>
	<table cellpadding = "0" cellspacing = "0" class="table table-striped table-bordered">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('First Name'); ?></th>
		<th><?php echo __('Last Name'); ?></th>
		<th><?php echo __('Dob'); ?></th>
		<th><?php echo __('Gender Id'); ?></th>
		<th><?php echo __('Street'); ?></th>
		<th><?php echo __('Suburb'); ?></th>
		<th><?php echo __('City'); ?></th>
		<th><?php echo __('State'); ?></th>
		<th><?php echo __('Postcode'); ?></th>
		<th><?php echo __('Country'); ?></th>
		<th><?php echo __('Phone'); ?></th>
		<th><?php echo __('Join Date'); ?></th>
		<th><?php echo __('Username'); ?></th>
		<th><?php echo __('Password'); ?></th>
		<th><?php echo __('Email'); ?></th>
		<th><?php echo __('Last Login'); ?></th>
		<th><?php echo __('Group Id'); ?></th>
		<th><?php echo __('ActivationKey'); ?></th>
		<th><?php echo __('Status Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($status['Customer'] as $customer): ?>
		<tr>
			<td><?php echo $customer['id']; ?></td>
			<td><?php echo $customer['first_name']; ?></td>
			<td><?php echo $customer['last_name']; ?></td>
			<td><?php echo $customer['dob']; ?></td>
			<td><?php echo $customer['gender_id']; ?></td>
			<td><?php echo $customer['street']; ?></td>
			<td><?php echo $customer['suburb']; ?></td>
			<td><?php echo $customer['city']; ?></td>
			<td><?php echo $customer['state']; ?></td>
			<td><?php echo $customer['postcode']; ?></td>
			<td><?php echo $customer['country']; ?></td>
			<td><?php echo $customer['phone']; ?></td>
			<td><?php echo $customer['join_date']; ?></td>
			<td><?php echo $customer['username']; ?></td>
			<td><?php echo $customer['password']; ?></td>
			<td><?php echo $customer['email']; ?></td>
			<td><?php echo $customer['last_login']; ?></td>
			<td><?php echo $customer['group_id']; ?></td>
			<td><?php echo $customer['activationKey']; ?></td>
			<td><?php echo $customer['status_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'customers', 'action' => 'view', $customer['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'customers', 'action' => 'edit', $customer['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'customers', 'action' => 'delete', $customer['id']), null, __('Are you sure you want to delete # %s?', $customer['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('New Customer'), array('controller' => 'customers', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
    <?php else: ?>
    <?php echo "You can't view this";?>
    <?php endif; ?>
</div>

